home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 April: Mac OS SDK / Dev.CD Apr 00 SDK1.toast / Development Kits / Mac OS / Speech Synthesis Manager / Installer Source / Templates / InstallATomeFile.r < prev    next >
Encoding:
Text File  |  1996-11-11  |  3.0 KB  |  80 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2.  *
  3.  *    File:        InstallATomeFile.r -    Rez Source
  4.  *
  5.  *    Author:        Deric Horn
  6.  *
  7.  *    Template for installing InstacompOne Tome files.
  8.  *    This contains the necessary type deffinitions to install from a Tome container.
  9.  *
  10.  *    History:    <1>    (12/2/94) Created this file.
  11.  *
  12.  *----------------------------------------------------------------------------*/
  13.  
  14. #ifndef    COMPAREPROC
  15.     #define    COMPAREPROC    useVersProcToCompare
  16. #endif
  17. #ifndef    DELETEFILE
  18.     #define    DELETEFILE    deleteWhenRemoving
  19. #endif
  20.  
  21. #ifndef    TARGETTFID
  22.     #define    TARGETTFID    targetFileBase+ID
  23.  
  24.     resource 'intf' (TARGETTFID) { 
  25.         format1 { 
  26.             noSearchForFile,                /* Search by calling the referenced 'insp' resource */
  27.             TypeCrNeedNotMatch,                /* Type and creator must match    */
  28.             FILETYPE,                        /* Target File Type */
  29.             FILECREATOR,                    /* Target File Creator */
  30.             0,                                /* Target File Finder Flags */
  31.             kScriptCheckSetsDate,            /* Target File Creation Date of new file */
  32.             kScriptCheckSetsDate,            /* Target File Mod. Date of new file */
  33.             0,                                /* Search Proc. Rsrc ID */
  34.             DESTDIR FILENAME                /* Destination Path */
  35.         } 
  36.     };
  37. #endif
  38.  
  39. #ifndef    HCDeCompResources
  40.     #define    HCDeCompResources
  41.     #define HCDeCompInexID        241                /* Mister Majic Number */
  42.     include "InstaCompOneAtomExt.rsrc" 'exfn' (HCDeCompInexID); /* Majic Decompressulator */
  43.     include "InstaCompOneAtomExt.rsrc" 'inex' (HCDeCompInexID);
  44. #endif
  45.  
  46. resource 'infa' (sourceFileBase+ID,FILENAME) {
  47.     format1 {
  48.         DELETEFILE,                        /* Remove file or rsrc if remove clicked */
  49.         deleteWhenInstalling,             /* Delete target before copy    */
  50.         copy,                             /* Copy file or rsrc to destination */
  51.         dontIgnoreLockedFile,             /* Set the Target file to be locked or not. */
  52.         dontSetFileLocked,                 /* Set the Target file to be locked or not. */
  53.         COMPAREPROC,                     /* How we determine if the target is newer. */
  54.         srcNeedExist,                     /* Ignore atom if file does not exist */
  55.         rsrcForkInDataFork,             /* Determines where to read the rsrc fork from */
  56.         leaveAloneIfNewer,                /* updateEvenIfNewer,*/     /* OK for a newer version of this file to exist */
  57.         updateExisting,                 /* Keep tgt file if it already exists */
  58.         copyIfNewOrUpdate,                 /* Only update if target exists    */
  59.         rsrcFork,                         /* Apply operation to rsrc fork */
  60.         dataFork,                         /* Apply operation to data fork    */
  61.         0,                                 /* total size uncomp */            /*SCRIPTCHECK SETS*/
  62.         0,                                 /* Finder Attribute Flags */    /*SCRIPTCHECK SETS*/
  63.         TARGETTFID,                     /* Tgt file spec ID */
  64.         {
  65.             TOMEID,                     /* Source File Spec */ /*  parts list, with exact target part sizes. */
  66.             0,                            /* Target Data Fork Part Size Uncompressed *//*SCRIPTCHECK SETS*/
  67.             0,                            /* Target Rsrc Fork Part Size Uncompressed *//*SCRIPTCHECK SETS*/
  68.         },
  69.         0x0,                            /* Source Version Number in BCD format. 0x12345678*/
  70.         0,                                /* Version Compare rsrc ID (zero if none) */
  71.         HCDeCompInexID,                    /* Atom Extender ID */
  72.         FILENAME                        /* Atom Description */
  73.     }
  74. };
  75.  
  76.  
  77. #undef    DELETEFILE
  78. #undef    COMPAREPROC
  79. #undef    TARGETTFID
  80.